/*
 * cli_webSock.h
 *
 *  Created on: Mar 14, 2011
 *      Author: Marco
 */

#ifndef CLI_WEBSOCK_H_
#define CLI_WEBSOCK_H_


#include <stdio.h>
#include <string.h>

#include "uipopt.h"

#include "../uart/uart.h"
#include "../cli/debug.h"
#include "../mult/api_services.h"

struct chat_state{
	enum { SEND_CHAT, RECV_CHAT, WAITING_CHAT} state;
	char buff[100];
	int bufflen;
	char inbuff[200];
};

struct psock prot;
int global_chat_flag;

void chat_init();
void chat_start();
void chat_appcall(void);
void chat_communication(struct chat_state *s);

#endif /* CLI_WEBSOCK_H_ */
